import api from '@/api/index'
import { debtServer } from '@/utils/apiConfig'
// 分页查询信息
export const getTabList = <T>(data?: unknown) => {
  return api.get<T>(debtServer + '/enterpriseAreaMigration', data)
}
// 获取详情
export const getMsgDetailById = <T>(id: string) => {
  return api.get<T>(debtServer + '/enterpriseAreaMigration/' + id)
}
// 审核通过
export const approveApi = <T>(data?: unknown) => {
  return api.put<T>(debtServer + '/enterpriseAreaMigration/approveBatch', data)
}
// 审核拒绝
export const rejectApi = <T>(id: string, data?: unknown) => {
  return api.put<T>(debtServer + `/enterpriseAreaMigration/${id}:reject`, data)
}
